//
//  BaseViewController.swift
//  U17_Test
//
//  Created by dingjunchuxing on 2019/9/25.
//  Copyright © 2019 text. All rights reserved.
//

import UIKit

class BaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.background
       
        if #available(iOS 11.0, *) {
            UIScrollView.appearance().contentInsetAdjustmentBehavior = .never
        } else {
            automaticallyAdjustsScrollViewInsets = false
        }
        
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
    }
    
    func configUI(){
        
    }
    
    func configNavigationBar() {
        guard let navi = navigationController else {return}
        
        if navi.visibleViewController == self {
            navi.bar
        }
    }
    

  

}
